/**
 * Copyright (c) 2018-2022, NXOS Development Team
 * SPDX-License-Identifier: Apache-2.0
 * 
 * Contains: stack backtrace
 * 
 * Change Logs:
 * Date           Author            Notes
 * 2022-07-28     JasonHu           Init
 */

#include <base/cache.h>
#define NX_LOG_NAME "cache"
#define NX_LOG_LEVEL NX_LOG_INFO
#include <base/log.h>

void NX_CacheInfoShow(void)
{
    NX_LOG_I("dcache line bytes: %d", NX_DcacheLineSize());
    NX_LOG_I("icache line bytes: %d", NX_IcacheLineSize());
    NX_LOG_I("dcache status: %s", NX_DcacheStatus() ? "Enabled" : "Disabled");
    NX_LOG_I("icache status: %s", NX_IcacheStatus() ? "Enabled" : "Disabled");
}
